package com.itheima.api;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.pojo.UmsResource;

import java.util.List;

/**
 * @author 袁鹏
 * @date 2022-10-13-11:39
 */
public interface UmsResourceApi {
    List<UmsResource> getById(List<Long> resourceIdList);

    UmsResource getById(Long resourceId);

    void create(UmsResource umsResource);

    void delete(Long id);

    void delete(List<Long> idList);

    Page<UmsResource> pageList(Integer categoryId, String nameKeyword, String urlKeyword, Integer pageNum, Integer pageSize);

    List<UmsResource> list();

    void update(UmsResource resource);

    List<UmsResource> getByCategoryId(Long id);
}
